﻿public class SelfCallAstTree : CallAstTree
{
    public LuaAstTree Self { get; }
    public SelfCallAstTree(LuaAstTree self, LuaMethodReference method, LuaAstTree[] parameters)
        : base(method, parameters)
    {
        Self = self;
    }
    public override void WriteTo(ICodeWriter writer)
    {
        Self.WriteTo(writer);
        writer.Code(":");
        base.WriteTo(writer);
    }
}

